/*
 该模块专门用于暴露一个store对象，整个应用，整个应用只有一个store 对象

 */
// 引入 leaacy_createStore 专门用于创建redux中最为核心的store 对象;
import { legacy_createStore as createStore, applyMiddleware } from 'redux'

import thunk from 'redux-thunk'
import logger from 'redux-logger'
// 引入为应用服务的reducer
import reducers from './reducers'
// 暴露一个store
const store = createStore(reducers, applyMiddleware(thunk, logger))
export default store
